{layout name="p/base_1"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>个人信息 <small>忘记密码</small></h1>
        
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <form class="form-horizontal" role="form" action="/campmanager/newpwd" method="post">
          <div class="form-group">
            <label class="col-xs-12" for="name">已绑定手机号</label>
            <div class="col-sm-3">
              <input type="text" class="form-control" id="phone" name="phone" placeholder="请输入您的手机号">
            </div>
            <div class="col-xs-6">
              <input class="btn btn-default" type="button" id="pwd" value="免费获取新密码" />
            </div>
          </div>
          <div class="form-group">
            <div class="col-xs-3">
              <input type="text" class="form-control" id="name" name="newpwd" 
               placeholder="请输入新密码">
            </div>
            
          </div>
          <div class="form-group">
            <div class="col-xs-12">
              <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
              <button type="submit" class="btn btn-primary">提交</button>
            </div>
          </div>
        </form>
      </div>
    </div>
    <!-- /.row -->
    
  </div><!-- /#page-wrapper -->
<script type="text/javascript" src="/jquery.js"></script>
<script src="/front/js/js.js"></script>
<script type="text/javascript">
      $(document).ready(function(){
        $("#pwd").click(function(){
        $.post("/campmanager/sendpwd",
          { 
            phone:$('#phone').val() 
          },
          function(data,status,dataType){
            //if (data == 0) {alert('验证码错误')}
          });
        });
    });


</script>